Cleanup and Pre-release checks #44
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cleanup & Pre-release Checks
Summary
This PR completes the
tfe → pytferename, finalizes the modular model layout underpytfe/models/, and hardens the transport and resources to prep for GA. Highlights:pytfeacross source, tests, and examples.types.pyinto cohesive domain modules underpytfe/models/(with a newcommon.py).pytfe/models/__init__.py(no more dynamic loaders).Notable Changes
1) Package rename & public surface
tfe→pytfe.src/pytfe/__init__.pyexposes a minimal, stable surface:TFEClient,TFEConfig,errors,models.pyproject.toml: distribution name set topytfe, wheel targetsrc/pytfe, sdist include list updated.2) Model refactor (types split → modules)
Why: smaller units, clearer ownership, better testability, fewer circulars.
pytfe/models/common.py: shared primitives & small types (e.g., enums, pagination, tag-related helpers) to avoid duplication and cross-module import cycles.models/configuration_version.py(includesConfigurationVersion*models,IngressAttributes, andConfigVerIncludeOpt).models/data_retention_policy.py(policy + set options + choice union).models/workspace.py(workspace DTOs, options, include enums,VCSRepo,LockedByChoice, etc.).models/__init__.py: curated, explicit re-exports from domain modules; removed dynamicimportlibloader that used to reflect a flattypes.py.3) Transport groundwork
pytfe/<version>.Foundations for the Team (to keep going forward)
Module boundaries & re-exports
pytfe/models/__init__.pyis the only public exporter—keep it curated and alphabetized.Transport contracts
HTTPTransport. (No Async)Testing
pytfeimports and new model paths.Appendix: Example import patterns